package com.duanjw.springboot.mybatisplus.config;

import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;

import static java.time.format.DateTimeFormatter.*;

public class Test {
    public static void main(String[] args) {
        Instant instant = Instant.parse("2021-01-18T00:30:00.000Z");
        LocalDateTime nextStartTime = LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
//        System.out.println(LocalDateTime.parse("2021-01-18T00:30:00.000Z", ISO_LOCAL_DATE_TIME));
        System.out.println(LocalDateTime.parse("2021-01-18T00:30:00.000Z", ISO_OFFSET_DATE_TIME));
        System.out.println(LocalDateTime.parse("2021-01-18T00:30:00.000Z", ISO_OFFSET_DATE_TIME));
        System.out.println(LocalDateTime.parse("2021-01-18T00:30:00.000Z", ISO_ZONED_DATE_TIME));
        System.out.println(LocalDateTime.parse("2021-01-18T00:30:00.000Z", ISO_DATE_TIME));
//        System.out.println(nextStartTime);
        System.out.println(LocalDateTime.now(ZoneOffset.UTC));
    }
}
